-- GENERATED SPELL FOR [Blackrock Champion] --


function spell0_435(pUnit, Event) --@Demoralizing Shout,Self--
pUnit:FullCastSpellOnTarget(13730,pUnit)
pUnit:RegisterEvent('Sorts_435', 30316, 1)
end

function spell1_435(pUnit, Event) --@Devotion Aura,Self--
pUnit:FullCastSpellOnTarget(8258,pUnit)
pUnit:RegisterEvent('Sorts_435', 608, 1)
end

function spell2_435(pUnit, Event) --@Frenzy,Self--
pUnit:FullCastSpellOnTarget(3019,pUnit)
pUnit:RegisterEvent('Sorts_435', 15000, 1)
end

function Sorts_435(pUnit, Event)
local choix_sorts_435 = math.random(0, 2)
if choix_sorts_435 == 0 then
pUnit:RegisterEvent('spell0_435', 1, 1)
end
if choix_sorts_435 == 1 then
pUnit:RegisterEvent('spell1_435', 1, 1)
end
if choix_sorts_435 == 2 then
pUnit:RegisterEvent('spell2_435', 1, 1)
end
end

function mob435_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_435', math.random(1500, 3000), 1)
end

function mob435_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob435_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob435_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(435, 1, 'mob435_Action')
RegisterUnitEvent(435, 2, 'mob435_Leave')
RegisterUnitEvent(435, 3, 'mob435_Kill')
RegisterUnitEvent(435, 4, 'mob435_Die')
